package com.solution.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * UserLoginFailureId
 */
@Embeddable
public class UserLoginFailureId  implements java.io.Serializable
 {

	
	private static final long serialVersionUID = 1L;
	
    private Long userInfoId;
    private Date attemptedOn;
    private String iPAddress;
    private String createdBy;
    private Date createdOn;
    private String modifiedBy;
    private Date modifiedOn;
    private String rfu1;
    private String rfu2;
    private String rfu3;


    @Column(name="User_InfoID", nullable=false, precision=10, scale=0)
    public Long getUserInfoId() {
        return this.userInfoId;
    }
    
    public void setUserInfoId(Long userInfoId) {
        this.userInfoId = userInfoId;
    }

    @Column(name="Attempted_On", length=23)
    public Date getAttemptedOn() {
        return this.attemptedOn;
    }
    
    public void setAttemptedOn(Date attemptedOn) {
        this.attemptedOn = attemptedOn;
    }

    @Column(name="IP_Address", length=20)
    public String getiPAddress() {
        return this.iPAddress;
    }
    
    public void setiPAddress(String iPAddress) {
        this.iPAddress = iPAddress;
    }

    @Column(name="CreatedBy", nullable=false, length=50)
    public String getCreatedBy() {
        return this.createdBy;
    }
    
    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    @Column(name="CreatedOn", nullable=false, length=23)
    public Date getCreatedOn() {
        return this.createdOn;
    }
    
    public void setCreatedOn(Date createdOn) {
        this.createdOn = createdOn;
    }

    @Column(name="ModifiedBy", length=50)
    public String getModifiedBy() {
        return this.modifiedBy;
    }
    
    public void setModifiedBy(String modifiedBy) {
        this.modifiedBy = modifiedBy;
    }

    @Column(name="ModifiedOn", length=23)
    public Date getModifiedOn() {
        return this.modifiedOn;
    }
    
    public void setModifiedOn(Date modifiedOn) {
        this.modifiedOn = modifiedOn;
    }

    @Column(name="RFU1", length=100)
    public String getRfu1() {
        return this.rfu1;
    }
    
    public void setRfu1(String rfu1) {
        this.rfu1 = rfu1;
    }

    @Column(name="RFU2", length=100)
    public String getRfu2() {
        return this.rfu2;
    }
    
    public void setRfu2(String rfu2) {
        this.rfu2 = rfu2;
    }

    @Column(name="RFU3", length=100)
    public String getRfu3() {
        return this.rfu3;
    }
    
    public void setRfu3(String rfu3) {
        this.rfu3 = rfu3;
    }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof UserLoginFailureId) ) return false;
		 UserLoginFailureId castOther = ( UserLoginFailureId ) other; 
         
		 return ( (this.getUserInfoId()==castOther.getUserInfoId()) || ( this.getUserInfoId()!=null && castOther.getUserInfoId()!=null && this.getUserInfoId().equals(castOther.getUserInfoId()) ) )
 && ( (this.getAttemptedOn()==castOther.getAttemptedOn()) || ( this.getAttemptedOn()!=null && castOther.getAttemptedOn()!=null && this.getAttemptedOn().equals(castOther.getAttemptedOn()) ) )
 && ( (this.getiPAddress()==castOther.getiPAddress()) || ( this.getiPAddress()!=null && castOther.getiPAddress()!=null && this.getiPAddress().equals(castOther.getiPAddress()) ) )
 && ( (this.getCreatedBy()==castOther.getCreatedBy()) || ( this.getCreatedBy()!=null && castOther.getCreatedBy()!=null && this.getCreatedBy().equals(castOther.getCreatedBy()) ) )
 && ( (this.getCreatedOn()==castOther.getCreatedOn()) || ( this.getCreatedOn()!=null && castOther.getCreatedOn()!=null && this.getCreatedOn().equals(castOther.getCreatedOn()) ) )
 && ( (this.getModifiedBy()==castOther.getModifiedBy()) || ( this.getModifiedBy()!=null && castOther.getModifiedBy()!=null && this.getModifiedBy().equals(castOther.getModifiedBy()) ) )
 && ( (this.getModifiedOn()==castOther.getModifiedOn()) || ( this.getModifiedOn()!=null && castOther.getModifiedOn()!=null && this.getModifiedOn().equals(castOther.getModifiedOn()) ) )
 && ( (this.getRfu1()==castOther.getRfu1()) || ( this.getRfu1()!=null && castOther.getRfu1()!=null && this.getRfu1().equals(castOther.getRfu1()) ) )
 && ( (this.getRfu2()==castOther.getRfu2()) || ( this.getRfu2()!=null && castOther.getRfu2()!=null && this.getRfu2().equals(castOther.getRfu2()) ) )
 && ( (this.getRfu3()==castOther.getRfu3()) || ( this.getRfu3()!=null && castOther.getRfu3()!=null && this.getRfu3().equals(castOther.getRfu3()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getUserInfoId() == null ? 0 : this.getUserInfoId().hashCode() );
         result = 37 * result + ( getAttemptedOn() == null ? 0 : this.getAttemptedOn().hashCode() );
         result = 37 * result + ( getiPAddress() == null ? 0 : this.getiPAddress().hashCode() );
         result = 37 * result + ( getCreatedBy() == null ? 0 : this.getCreatedBy().hashCode() );
         result = 37 * result + ( getCreatedOn() == null ? 0 : this.getCreatedOn().hashCode() );
         result = 37 * result + ( getModifiedBy() == null ? 0 : this.getModifiedBy().hashCode() );
         result = 37 * result + ( getModifiedOn() == null ? 0 : this.getModifiedOn().hashCode() );
         result = 37 * result + ( getRfu1() == null ? 0 : this.getRfu1().hashCode() );
         result = 37 * result + ( getRfu2() == null ? 0 : this.getRfu2().hashCode() );
         result = 37 * result + ( getRfu3() == null ? 0 : this.getRfu3().hashCode() );
         return result;
   }   


}


